package com.ctsi.organise.common.constant;

/**
 * @author: zhangjw
 * @Date: 2018/11/11 20:27
 * @Description:
 */
public enum  PartyType {
    /**
     *省公司或地市
     */
    MINORGAN(50),
    /**
     * 部门
     */
    DEPARTORGAN(51),
//    QUXIAN(52),
//    ZHIJU(53),
    /**
     * 用户
     */
    PERSON(0);

    public int value;

    PartyType(int value) {
        this.value = value;
    }

    public static PartyType getPartyTypeConstant(String value){
        for (PartyType partyType : values()) {
            if (value.equals(partyType.value)) {
                return partyType;
            }
        }
        return null;
    }
}
